 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>刮刮乐奖品设置</title>
    <link href="${base}/resource/admin/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${base}/resource/admin/js/jquery.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/common.js"></script>
    <script type="text/javascript" src="${base}/resource/admin/js/list.js"></script>
    <script type="text/javascript">
        $().ready(function() {
        [@flash_message /]
        });
    </script>
</head>
<body>
<!-- 地址导航-->
<div class="path">
    <a href="/admin/main.do">首页</a> &raquo;刮刮乐活动列表<span>总记录数:${page.total}</span>
</div>
<form id="listForm" action="list.do" method="get">
    <div class="bar">
        <a href="add.do?id=${gglhd.id}" class="iconButton">
            <span class="addIcon">&nbsp;</span>添加
        </a>
        <a href="javascript:;" id="deleteButton" class="iconButton disabled">
            <span class="deleteIcon">&nbsp;</span>删除
        </a>
        <div class="buttonWrap">
            <a href="javascript:;" id="refreshButton" class="iconButton">
                <span class="refreshIcon">&nbsp;</span>刷新
            </a>
            <div class="menuWrap">
                <a href="javascript:;" id="pageSizeSelect" class="button">
                    每页条数<span class="arrow">&nbsp;</span>
                </a>
                <div class="popupMenu">
                    <ul id="pageSizeOption">
                        <li>
                            <a href="javascript:;"[#if page.numPerPage == 10] class="current"[/#if] val="10">10</a>
                        </li>
                        <li>
                            <a href="javascript:;"[#if page.numPerPage == 20] class="current"[/#if] val="20">20</a>
                        </li>
                        <li>
                            <a href="javascript:;"[#if page.numPerPage == 50] class="current"[/#if] val="50">50</a>
                        </li>
                        <li>
                            <a href="javascript:;"[#if page.numPerPage == 100] class="current"[/#if] val="100">100</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <table id="listTable" class="list">
        <tr>
            <th class="check">
                <input type="checkbox" id="selectAll" />
            </th>
            <th>
                <span>奖品图片</span>
            </th>
            <th>
                <span>奖品类型</span>
            </th>
            <th>
            <span>奖品说明</span>
        </th>
            <th>
                <span>奖品数量</span>
            </th>
            <th>
                <span>奖品库存</span>
            </th>
            <th>
                <span>奖品概率 <span style="color: #cc0000;"></p>(概率总和<=1)</span></span>
            </th>
            <th>
                <span>操作</span>
            </th>

        </tr>
        [#list page.content as ggljp]
        <tr>
            <td>
                <input type="checkbox" name="ids" value="${ggljp.id}" />
            </td>
            <td> [#if ggljp.imgPath??]
                <img src="${ggljp.imgPath}" style="width:80px;height: 50px;"/>
                [/#if]</td>
            <td>
			${ggljp.name}
            </td>
            <td>
			${ggljp.jp}
            </td>

            <td>
            ${ggljp.num}
            </td>
            <td>
            ${ggljp.kc}
            </td>
            <td>
            ${ggljp.gl}
            </td>
            <td>
           <a href="edit.do?id=${ggljp.id}">[编辑]</a>
            </td>

        </tr>
        [/#list]
    </table>
    [@pagination pageNumber = page.numPerPage totalPages = page.totalPages]
    [#include "/common/pagination.ftl"]
    [/@pagination]
</form>
</body>
</html>